package com.ruoyi.web.job;

import com.ruoyi.business.seaTotal.service.ISeaTotalDataService;
import com.ruoyi.web.domain.SeaData;
import com.ruoyi.web.service.ISeaDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.List;

/**
 *
 *从原始数据库往海数据总览数据库导入数据
 * @author 李国臻
 * @date 2025-11-13 11:26
 */
@Component("seaDataJob")
public class SeaDataJob {

    @Autowired
    private ISeaDataService seaDataService;

    @Autowired
    private ISeaTotalDataService seaTotalDataService;

    public void run(){
        seaDataService.selectBuyoDataList();

        SeaData seaData = new SeaData();
        // 设置当前日期到天
        LocalDateTime now = LocalDateTime.now();
        seaData.setHourOfDay(now.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));


    }
}